package admin_services

import (
	"ginServer/modules/admin/admin_models"
	"ginServer/modules/common/common_models"

	"github.com/gin-gonic/gin"
)

type AdminAdminService struct {
	BaseService
}

func (s AdminAdminService) Index(c *gin.Context) {
	var adminAdmin []admin_models.AdminAdmin
	common_models.Db.Find(&adminAdmin)
	s.IndexApiSuccess(c, adminAdmin)

	// userName := c.GetString("user_name")
	// page := c.GetFloat64( "page")
	// limit := c.GetFloat64("limit")
	// limitStart := (page - 1) * limit

	// counts, showlist := model.CreateUserFactory("").Show(userName, int(limitStart), int(limit))
	// if counts > 0 && showlist != nil {
	// 	response.Success(context, consts.CurdStatusOkMsg, gin.H{"counts": counts, "list": showlist})
	// } else {
	// 	response.Fail(context, consts.CurdSelectFailCode, consts.CurdSelectFailMsg, "")
	// }

}
